<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">

<ui:composition template="/WEB-INF/facelets/templates/template.xhtml">

 <ui:define name="menu">
				<h:form prependId="false">
					<p:menubar style="padding:0 0 0 70px;">

						<p:submenu
							label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  
			                  Nosotros 
			                  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="Información General" url="#" />
							<p:menuitem value="Mission Vision" url="#" />
							<p:menuitem value="Estructura UNCP" url="#" />

							<p:submenu label="Como llegar ?">
								<p:menuitem value="Mapa del Campus" url="#" />
							</p:submenu>

						</p:submenu>

						<p:submenu
							label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                Generar Carnet
			                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="Generar Carnet" action="generacionCarnet.xhtml" ajax="false"/>
						</p:submenu>

						<p:submenu
							label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                 Carnet Generados
			                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="Carnet Generados" action="carnetGenerados.xhtml"  ajax="false"/>
						</p:submenu>
						
						<p:submenu
							label="&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			                Session
			                 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;">
							<p:menuitem value="Cerrar Session" ajax="false" action="#{cUsuarioSistemaController.cerrarCession}"  />
						</p:submenu>
						

					</p:menubar>


				</h:form>
			</ui:define>

		<!--     Cuerpo -->
	<ui:define name="bodyLateralIzquierdo">
		<div align="center" style="margin: 60px 0 0 0;">

			<h:form id="frm01" prependId="false">

				<p:panel header="POSTULANTES CON CARNETS GENERADOS"  style="width: 50em;">

					<h:panelGrid columns="2" cellpadding="2" cellspacing="2">

						<h:panelGrid id="idPanelGrid1" title="Postulantes Aprobados"
							columns="1">
							<p:dataTable
								value="#{cCarnetController.listaPostulantesConCarnet}"
								paginator="true" rows="10" var="eCarnet" widgetVar="pTable">

								<p:column headerText="NOMBRES"
									filterBy="#{eCarnet.postulante.str_nom_postu}"
									filterMatchMode="contains">
									<h:outputText value="#{eCarnet.postulante.str_nom_postu}" />
								</p:column>
								<p:column headerText="APE. PATERNO"
									filterBy="#{eCarnet.postulante.str_apePat_postu}"
									filterMatchMode="contains">
									<h:outputText value="#{eCarnet.postulante.str_apePat_postu}" />
								</p:column>
								<p:column headerText="APE. MATERNO"
									filterBy="#{eCarnet.postulante.str_apeMat_postu}"
									filterMatchMode="contains">
									<h:outputText value="#{eCarnet.postulante.str_apeMat_postu}" />
								</p:column>
								<p:column headerText="ESTADO"
									filterBy="#{eCarnet.str_estado}"
									filterMatchMode="contains">
									<h:outputText value="#{eCarnet.str_estado}" />
								</p:column>
								<p:column headerText="Ver" style="text-align: center;">
									<h:panelGrid columns="3" styleClass="actions" cellpadding="2">
										<p:commandButton update="display"
											oncomplete="carDialog.show()" image="ui-icon ui-icon-search" title="Ver" style="border:0;">
											<f:setPropertyActionListener value="#{eCarnet}"
												target="#{cCarnetController.carnet}" />
										</p:commandButton>
									</h:panelGrid>
								</p:column>
							</p:dataTable>
						</h:panelGrid>

					</h:panelGrid>

				</p:panel>
				 
					<p:dialog header="Carnet generado" widgetVar="carDialog"
							resizable="false" id="carDlg" showEffect="fade"
							hideEffect="explode" modal="true" width="500" >
							<h:panelGrid id="display" columns="1"
								style="margin:0 0 0 0;font-size:13px;background-image:url('recursos/images/fondoCarnet.png');">
								<table border="0" width="100%" style="margin: 0 0 0 0; color: black; font-style:italic;">
									<tr>
										<td rowspan="4" align="center">
											<img src="documentos/#{cCarnetController.carnet.postulante.str_urlFoto_postu}" alt="" width="125" height="135" style="border: 0 0 0 0;" />
										</td>
										<td align="center">
											<img src="recursos/images/logo.png" alt="" width="75"/>
										</td>
									</tr>
									<tr>
										<td>
										<label style="margin-left: 35px;color: #227DBA;">Código del Postulante &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</label><br />
										<label style="margin-left: 35px;">#{cCarnetController.carnet.postulante.int_cod_postu}</label>
										</td>
									</tr>
									<tr>
										<td>
										<label style="margin-left: 35px;color: #227DBA;">Ape. Paterno</label><br />
										<label style="margin-left: 35px;">#{cCarnetController.carnet.postulante.str_apePat_postu}</label>
										</td>
									</tr>
									<tr>
										<td>
										<label style="margin-left: 35px;color: #227DBA;">Ape. Materno</label><br />
										<label style="margin-left: 35px;">#{cCarnetController.carnet.postulante.str_apeMat_postu}</label>
										</td>
									</tr>
									<tr>
										<td>
											<label style="color: #227DBA;">&nbsp;&nbsp;&nbsp;Periodo de postulanción</label>
											<br />
											<label>&nbsp;&nbsp;&nbsp;2012 - I</label>
										</td>
										<td>
										<label style="margin-left: 35px;color: #227DBA;">Nombres</label><br />
										<label style="margin-left: 35px;">#{cCarnetController.carnet.postulante.str_nom_postu}</label>
										</td>
									</tr>
									<tr>
										<td align="center" colspan="2">
											<img src="recursos/images/codigoBarra.jpg" alt="" height="30" style="margin-top: 10px;"/>
										</td>
									</tr>
			
								</table>

            
							</h:panelGrid>
                             
               
						</p:dialog>

			</h:form>


		</div>
	</ui:define>
	</ui:composition>
</html>